/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2008-2014 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/
package com.eam.data;

import com.mes.data.EmesProcessOpr;
import com.mes.data.EmesVendor;

import java.math.BigDecimal;
import java.util.Date;

import org.openbravo.base.structure.ActiveEnabled;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.base.structure.ClientEnabled;
import org.openbravo.base.structure.OrganizationEnabled;
import org.openbravo.base.structure.Traceable;
import org.openbravo.model.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.common.enterprise.Locator;
import org.openbravo.model.common.enterprise.Organization;
/**
 * Entity class for entity Eam_Spareparts_Inventory (stored in table Eam_Spareparts_Inventory).
 *
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 */
public class EamSparepartsInventory extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "Eam_Spareparts_Inventory";
    public static final String ENTITY_NAME = "Eam_Spareparts_Inventory";
    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_EAMSPAREPARTS = "eamSpareparts";
    public static final String PROPERTY_LOCATOR = "locator";
    public static final String PROPERTY_STORAGEPOSITION = "storagePosition";
    public static final String PROPERTY_NUMBERS = "numbers";
    public static final String PROPERTY_PRICE = "price";
    public static final String PROPERTY_EMESPROCESSOPR = "emesProcessopr";
    public static final String PROPERTY_EAMFACILITIES = "eamFacilities";
    public static final String PROPERTY_INVENTORYTIME = "inventoryTime";
    public static final String PROPERTY_TYPE = "type";
    public static final String PROPERTY_STATUS = "status";
    public static final String PROPERTY_REMARKS = "remarks";
    public static final String PROPERTY_ORGANIZATION = "organization";
    public static final String PROPERTY_CLIENT = "client";
    public static final String PROPERTY_ACTIVE = "active";
    public static final String PROPERTY_CREATIONDATE = "creationDate";
    public static final String PROPERTY_CREATEDBY = "createdBy";
    public static final String PROPERTY_UPDATED = "updated";
    public static final String PROPERTY_UPDATEDBY = "updatedBy";
    public static final String PROPERTY_SPAREFIELD = "sparefield";
    public static final String PROPERTY_FUNCTIONALPROCESSING = "functionalProcessing";
    public static final String PROPERTY_COMPANY = "company";
    public static final String PROPERTY_INVENTORYNUMBERS = "inventoryNumbers";
    public static final String PROPERTY_USER = "user";
    public static final String PROPERTY_EMESVENDOR = "emesVendor";

    public EamSparepartsInventory() {
        setDefaultValue(PROPERTY_ACTIVE, true);
    }

    @Override
    public String getEntityName() {
        return ENTITY_NAME;
    }

    public String getId() {
        return (String) get(PROPERTY_ID);
    }

    public void setId(String id) {
        set(PROPERTY_ID, id);
    }

    public EamSpareparts getEamSpareparts() {
        return (EamSpareparts) get(PROPERTY_EAMSPAREPARTS);
    }

    public void setEamSpareparts(EamSpareparts eamSpareparts) {
        set(PROPERTY_EAMSPAREPARTS, eamSpareparts);
    }

    public Locator getLocator() {
        return (Locator) get(PROPERTY_LOCATOR);
    }

    public void setLocator(Locator locator) {
        set(PROPERTY_LOCATOR, locator);
    }

    public String getStoragePosition() {
        return (String) get(PROPERTY_STORAGEPOSITION);
    }

    public void setStoragePosition(String storagePosition) {
        set(PROPERTY_STORAGEPOSITION, storagePosition);
    }

    public BigDecimal getNumbers() {
        return (BigDecimal) get(PROPERTY_NUMBERS);
    }

    public void setNumbers(BigDecimal numbers) {
        set(PROPERTY_NUMBERS, numbers);
    }

    public BigDecimal getPrice() {
        return (BigDecimal) get(PROPERTY_PRICE);
    }

    public void setPrice(BigDecimal price) {
        set(PROPERTY_PRICE, price);
    }

    public EmesProcessOpr getEmesProcessopr() {
        return (EmesProcessOpr) get(PROPERTY_EMESPROCESSOPR);
    }

    public void setEmesProcessopr(EmesProcessOpr emesProcessopr) {
        set(PROPERTY_EMESPROCESSOPR, emesProcessopr);
    }

    public EamFacilities getEamFacilities() {
        return (EamFacilities) get(PROPERTY_EAMFACILITIES);
    }

    public void setEamFacilities(EamFacilities eamFacilities) {
        set(PROPERTY_EAMFACILITIES, eamFacilities);
    }

    public Date getInventoryTime() {
        return (Date) get(PROPERTY_INVENTORYTIME);
    }

    public void setInventoryTime(Date inventoryTime) {
        set(PROPERTY_INVENTORYTIME, inventoryTime);
    }

    public String getType() {
        return (String) get(PROPERTY_TYPE);
    }

    public void setType(String type) {
        set(PROPERTY_TYPE, type);
    }

    public String getStatus() {
        return (String) get(PROPERTY_STATUS);
    }

    public void setStatus(String status) {
        set(PROPERTY_STATUS, status);
    }

    public String getRemarks() {
        return (String) get(PROPERTY_REMARKS);
    }

    public void setRemarks(String remarks) {
        set(PROPERTY_REMARKS, remarks);
    }

    public Organization getOrganization() {
        return (Organization) get(PROPERTY_ORGANIZATION);
    }

    public void setOrganization(Organization organization) {
        set(PROPERTY_ORGANIZATION, organization);
    }

    public Client getClient() {
        return (Client) get(PROPERTY_CLIENT);
    }

    public void setClient(Client client) {
        set(PROPERTY_CLIENT, client);
    }

    public Boolean isActive() {
        return (Boolean) get(PROPERTY_ACTIVE);
    }

    public void setActive(Boolean active) {
        set(PROPERTY_ACTIVE, active);
    }

    public Date getCreationDate() {
        return (Date) get(PROPERTY_CREATIONDATE);
    }

    public void setCreationDate(Date creationDate) {
        set(PROPERTY_CREATIONDATE, creationDate);
    }

    public User getCreatedBy() {
        return (User) get(PROPERTY_CREATEDBY);
    }

    public void setCreatedBy(User createdBy) {
        set(PROPERTY_CREATEDBY, createdBy);
    }

    public Date getUpdated() {
        return (Date) get(PROPERTY_UPDATED);
    }

    public void setUpdated(Date updated) {
        set(PROPERTY_UPDATED, updated);
    }

    public User getUpdatedBy() {
        return (User) get(PROPERTY_UPDATEDBY);
    }

    public void setUpdatedBy(User updatedBy) {
        set(PROPERTY_UPDATEDBY, updatedBy);
    }

    public String getSparefield() {
        return (String) get(PROPERTY_SPAREFIELD);
    }

    public void setSparefield(String sparefield) {
        set(PROPERTY_SPAREFIELD, sparefield);
    }

    public String getFunctionalProcessing() {
        return (String) get(PROPERTY_FUNCTIONALPROCESSING);
    }

    public void setFunctionalProcessing(String functionalProcessing) {
        set(PROPERTY_FUNCTIONALPROCESSING, functionalProcessing);
    }

    public String getCompany() {
        return (String) get(PROPERTY_COMPANY);
    }

    public void setCompany(String company) {
        set(PROPERTY_COMPANY, company);
    }

    public BigDecimal getInventoryNumbers() {
        return (BigDecimal) get(PROPERTY_INVENTORYNUMBERS);
    }

    public void setInventoryNumbers(BigDecimal inventoryNumbers) {
        set(PROPERTY_INVENTORYNUMBERS, inventoryNumbers);
    }

    public User getUser() {
        return (User) get(PROPERTY_USER);
    }

    public void setUser(User user) {
        set(PROPERTY_USER, user);
    }

    public EmesVendor getEmesVendor() {
        return (EmesVendor) get(PROPERTY_EMESVENDOR);
    }

    public void setEmesVendor(EmesVendor emesVendor) {
        set(PROPERTY_EMESVENDOR, emesVendor);
    }

}
